export default {
    component: 'jzlPagePagination',
    icon: 'fa fa-parking',
    name: '分页',

    box_style: null,
    ele_style: {
        _name: 'Pagination',
        _ss: {}
    },
    setting: {
        sticky: false,
        layout: "prev, pager, next",
        small: false,
        background: false,
        pageSizes: "10, 20, 30",
        hideOnSinglePage: false
    },
    setting_schema: {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "title": "分页 Pagination 组件参数设置",
        "description": "",
        "type": "object",
        "properties": {
            "layout": {
                "title": "组件布局",
                "type": "string",
                "enum": [
                    "prev, next",
                    "prev, pager, next",
                    "prev, pager, next, total",
                    "total, prev, pager, next",
                    "prev, pager, next, total",
                    "prev, pager, next, jumper",
                    "prev, pager, next, jumper, ->, total",
                    "total, sizes, prev, pager, next, jumper"
                ],
                "ui:options": {
                    "placeholder": "sizes, prev, pager, next, jumper, ->, total 组件名用逗号分隔"
                }
            },
            "small": {
                "title": "小型分页样式",
                "type": "boolean",
                "ui:widget": "RadioWidget",
                "enumNames": [
                    "是",
                    "否"
                ]
            },
            "background": {
                "title": "背景色",
                "type": "boolean",
                "ui:widget": "RadioWidget",
                "enumNames": [
                    "有",
                    "无"
                ]
            },
            "pageSizes": {
                "title": "每页显示个数选择器的选",
                "type": "string",
                "ui:options": {
                    "placeholder": "数字用逗号隔开，如：10, 20, 30"
                }
            },
            "hideOnSinglePage": {
                "title": "只有一页时是否隐藏",
                "type": "boolean",
                "ui:widget": "RadioWidget",
                "enumNames": [
                    "是",
                    "否"
                ]
            }
        }
    },
    vars: [{
        prop: "model",
        type: "number",
        default: 1,
        force: true,
        initType: "static"
    }, {
        prop: "pageSize",
        type: "number",
        default: 10,
        force: true,
        initType: "static"
    }, {
        prop: "totalRecords",
        type: "number",
        default: 0,
        force: true,
        initType: "static"
    }, {
        prop: "loading",
        type: "boolean",
        default: false,
        force: true,
        initType: "static"
    }]
}
